package com.web.util;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import wfm.entities.Worker;

public class Workers {
	
	private static Map<String,List<Worker>> workersOfPartners = new HashMap<String, List<Worker>>();
	
	static{
		List<Worker> workers = new ArrayList<Worker>();
		workers.add(new Worker(0,"Markus","Hofbauer","06640002322"));
		workers.add(new Worker(1,"Christian","Zimmel","06640002232"));
		workers.add(new Worker(2,"Lukas","Biegl","06640002422"));
		workersOfPartners.put("Mold Specialists", workers);
		
		workers = new ArrayList<Worker>();
		workers.add(new Worker(3,"Mario","Steinbock","06640002322"));
		workers.add(new Worker(4,"Thomas","Neubauer","06640002232"));
		workers.add(new Worker(5,"Stefan","Bauer","06640002422"));
		workersOfPartners.put("Plumber School", workers);
		
		workers = new ArrayList<Worker>();
		workers.add(new Worker(6,"Andreas","Bauer","06640002322"));
		workers.add(new Worker(7,"Alexander","Hofstetter","06640002232"));
		workers.add(new Worker(8,"Christoph","Lauscher","06640002422"));
		workersOfPartners.put("Fire Blaster", workers);
		
		workers = new ArrayList<Worker>();
		workers.add(new Worker(9,"Robert","Kogelmann","06640002322"));
		workers.add(new Worker(10,"Markus","Kogelmann","06640002232"));
		workers.add(new Worker(11,"Ingrid","Kogelmann","06640002422"));
		workersOfPartners.put("GAS Blaster", workers);
		
		workers = new ArrayList<Worker>();
		workers.add(new Worker(12,"Herbert","Polt","06640002322"));
		workers.add(new Worker(13,"Daniel","Polt","06640002232"));
		workers.add(new Worker(14,"Dominik","Stark","06640002422"));
		workersOfPartners.put("Ede", workers);
	}
	
	public static Map<String, List<Worker>> getWorkersOfPartners() {
		return workersOfPartners;
	}

	public static void setWorkersOfPartners(
			Map<String, List<Worker>> workersOfPartners) {
		Workers.workersOfPartners = workersOfPartners;
	}

	public static List<Worker> getWorkersByPartnerName(String name){
		return workersOfPartners.get(name);
	}
}
